const {save} = require('../models/feedback')

module.exports.saveFeedback = async (ctx, next) => {
	const feedback = ctx.request.body
	await save({
		uid: feedback.finger,
		keys: feedback.selectedOptions,
		comment: feedback.comment
	});
	ctx.response.body = feedback
}